package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.FenduanMapper;
import com.information.manage.MaintenanceRecord.pojo.Fenduan;
import com.information.manage.MaintenanceRecord.service.FenduanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FenduanServiceImpl implements FenduanService {
    @Autowired
    private FenduanMapper fenduanMapper;

    @Override
    public List<Fenduan> selectAll() {
        return fenduanMapper.selectAll();
    }

    @Override
    public void addMaintFenduan(Fenduan fenduan) {
        fenduanMapper.insert(fenduan);
    }

    @Override
    public void updateMaintFenduan(Fenduan fenduan) {
        fenduanMapper.update(fenduan);
    }

    @Override
    public void deleteMaintFenduan(Integer recordid) {
        fenduanMapper.delete(recordid);
    }

    @Override
    public void logicDeleteMaintFenduan(Integer recordid) {
        fenduanMapper.logicDelete(recordid);
    }
}